<?php 

namespace Admin\Logic;

class UserLogic{
	//用户
	public function createUser($data){
		$u = D('Admin');
		return $u->add($data);
	}

	public function userList(){
		$u = D('Admin');
		$re = $u->select();
		return $re;
	}
	
	public function searchUser($data){
		$u = D('Admin');
		$re = $u->where($data)->select();
		return $re;
	}
}